<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <title>企业信息管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../css/main.css" media="all">
    <link rel="stylesheet" href="../../css/enterpriseInfo.css" media="all">
</head>

<!--头部区域-->
<div id="LAY_app">
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <div class="layui-col-xs1 layui-col-sm1 layui-col-md1">&nbsp;</div>
            <!-- 头部区域 -->
            <div class="layui-col-xs4 layui-col-sm6 layui-col-md6">
                <div style="display:inline-block;margin-left: 20px;">
                    <img src="../../image/logo.png" height="50px" style="padding-top: 5px;cursor:pointer" title="首页"
                         onclick="window.open('enterpriseDetails.html', '_top', '', 'true')">
                </div>
            </div>

            <div class="layui-col-xs6 layui-col-sm4 layui-col-md4">
                <ul class="layui-nav" align="right" lay-filter="layadmin-layout-right">
                    <li class="layui-nav-item" lay-unselect>
                        <a href="javascript:;">
                            <img src="../../image/defalut.jpg" class="layui-nav-img" id="logo">
                            <cite id="prisename"></cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd><a href="enterpriseDetailedInfo.html" target="iframe_a">基本资料</a></dd>
                            <dd><a href="enterprisePwdChange.html" target="iframe_a">修改密码</a></dd>
                            <hr>
                            <dd layadmin-event="logout" style="text-align: center;"><a href="enterpriseLogin.html"
                                                                                       id="exit">退出</a></dd>
                        </dl>
                    </li>

                    <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-unselect>
                        <a href="javascript:;" layadmin-event="more"><i class="layui-icon layui-icon-more-vertical"></i></a>
                    </li>
                </ul>
            </div>
            <div class="layui-col-xs1 layui-col-sm1 layui-col-md1">&nbsp;</div>
        </div>
    </div>
</div>

<!--主体内容-->
<div class="layui-container">
    <div class="layui-row" style="margin-top: 20px;margin-left: -120px">
        <!--侧边导航栏-->
        <div class="layui-col-md2 layui-col-xs2 layui-col-sm2">
            <ul class="layui-nav layui-nav-tree layui-inline sidenav" lay-filter="demo">
                <li class="layui-nav-item" id="lilabel1"><a href="enterpriseDetailedInfo.html" id="alabel1"
                                                            style="font-size: 18px" target="iframe_a">企业信息</a></li>
                <li class="layui-nav-item" id="lilabel2"><a href="enterpriseAuth.html" id="alabel2"
                                                            style="font-size: 18px;" target="iframe_a">企业认证</a></li>
                <li class="layui-nav-item" id="lilabel3"><a href="enterpriseUpload.html" id="alabel3"
                                                            style="font-size: 18px;" target="iframe_a">信息完善</a></li>
                <li class="layui-nav-item" id="lilabel5"><a href="enterprisePostStatus.html" id="alabel5"
                                                            style="font-size: 18px;" target="iframe_a">岗位管理</a></li>
                <li class="layui-nav-item" id="lilabel6"><a href="enterprisePwdChange.html" id="alabel6"
                                                            style="font-size: 18px;" target="iframe_a">密码修改</a></li>
            </ul>
        </div>
        <div class="layui-col-md1 layui-col-xs1 layui-col-sm1"
             style="height: 500px;width: 0.3%;background-color: #ff6000">
        </div>
        <div class="layui-col-md6 layui-col-xs6 layui-col-sm6" style="height: 100%;">
            <iframe src="enterpriseDetailedInfo.html" id="iframeblog" name="iframe_a" frameborder="0"
                    class="frameset"></iframe>
        </div>
    </div>
</div>

<script src="../../libs/layui/layui.js"></script>
<script type="text/javascript">
    layui.use(['form', 'element', 'layer', 'jquery', 'okLayer'], function () {
        var element = layui.element;
        let layer = layui.layer;
        let form = layui.form;
        let $ = layui.jquery;
        let okLayer = layui.okLayer;
        // 获取contentText
        const ctx = function () {
            let pathName = document.location.pathname;
            let index = pathName.substr(1).indexOf("/");
            let result = pathName.substr(0, index + 1);
            return result;
        }();
        // 获取enterprise
        var enterprise = JSON.parse(window.sessionStorage.getItem("enterprise"));
        var url = ctx + "/pages/enterprise/enterpriseLogin.html";
        if (enterprise == null) {
            okLayer.yellowSighMsg("登陆时间超时，请重新登录！", function () {
                window.sessionStorage.clear();
                window.open(url, "_top", "", "true");
            });
        }
        $(document).ready(function () {
            $("#iframeblog").load(function () {
                $(this).height(0); //用于每次刷新时控制IFRAME高度初始化
                var height = $(this).contents().height() + 10;
                $(this).height(height < 500 ? 500 : height);
            });
        });

        $("#iframeblog").load(function () {
            $(this).height(0); //用于每次刷新时控制IFRAME高度初始化
            var height = $(this).contents().height() + 10;
            $(this).height(height < 500 ? 500 : height);
        });

        //头部设置
        if (enterprise.logoimg == null) {
            $("#logo").attr('src', "../../image/defalut.jpg");
        } else {
            $("#logo").attr("src", enterprise.logoimg);
        }
        document.getElementById("prisename").innerText = enterprise.enterpriseid
        $("#exit").bind('click', function () {
            enterprise = null;
        })

    });
</script>

</body>
</html>